package com.jinrustar.weimaqi.util

import java.io.IOException
import java.util.*

/**
 * Created by liduanwei on 2017/10/26 0026. liduanwei1988@gmail.com
 */
object PropertiesUtil {
    private var props: Properties? = null

    init {
        props = Properties()
        try {
            props!!.load(PropertiesUtil::class.java.classLoader.getResourceAsStream("app_config.properties"))
        } catch (e: IOException) {
            e.printStackTrace()
        }

    }

    fun getValue(key: String): String {
        return props!!.getProperty(key)
    }
}
